export default [
  {
    path: '/',
    name: '/',
    component: resolve => require(['@/login'], resolve)
  },
  {
    path: '/login',
    name: 'login',
    component: resolve => require(['@/login'], resolve)
  },
  {
    path: '/infoFlowData',
    name: 'infoFlowData',
    component: resolve => require(['@/index'], resolve),
    children: [
      {
        meta: {
          title: '账号数据',
          index: '1-1'
        },
        path: 'accountData',
        name: 'accountData',
        component: resolve =>
          require(['@/views/infoFlowData/accountData'], resolve)
      },
      {
        meta: {
          title: '账号管理',
          index: '1-2'
        },
        path: 'accountManage',
        name: 'accountManage',
        component: resolve =>
          require(['@/views/infoFlowData/accountManage'], resolve)
      },
      {
        meta: {
          title: '新建账号',
          index: '1-2'
        },
        path: 'newAccountNumber',
        name: 'newAccountNumber',
        component: resolve =>
          require(['@/views/infoFlowData/newAccountNumber'], resolve)
      },
      {
        meta: {
          title: '账号充值申请',
          index: '1-2'
        },
        path: 'applicationForAccountRecharge',
        name: 'applicationForAccountRecharge',
        component: resolve =>
          require([
            '@/views/infoFlowData/applicationForAccountRecharge'
          ], resolve)
      },
      {
        meta: {
          title: '账号充值明细',
          index: '1-2'
        },
        path: 'accountRechargeDetails',
        name: 'accountRechargeDetails',
        component: resolve =>
          require(['@/views/infoFlowData/accountRechargeDetails'], resolve)
      },
      {
        meta: {
          title: '产品管理',
          index: '1-3'
        },
        path: 'productManage',
        name: 'productManage',
        component: resolve =>
          require(['@/views/infoFlowData/productManage'], resolve)
      },
      {
        meta: {
          title: '新建产品',
          index: '1-3'
        },
        path: 'accountNewProduct',
        name: 'accountNewProduct',
        component: resolve =>
          require(['@/views/infoFlowData/accountNewProduct'], resolve)
      },
      {
        meta: {
          title: '客户管理',
          index: '1-4'
        },
        path: 'customManage',
        name: 'customManage',
        component: resolve =>
          require(['@/views/infoFlowData/customManage'], resolve)
      },
      {
        meta: {
          title: '新建客户',
          index: '1-4'
        },
        path: 'newcustomer',
        name: 'newcustomer',
        component: resolve =>
          require(['@/views/infoFlowData/newCustomer'], resolve)
      },
      {
        meta: {
          title: '平台管理',
          index: '1-5'
        },
        path: 'platformManage',
        name: 'platformManage',
        component: resolve =>
          require(['@/views/infoFlowData/platformManage'], resolve)
      },
      {
        meta: {
          title: '客户合同管理',
          index: '1-6'
        },
        path: 'customContractManage',
        name: 'customContractManage',
        component: resolve =>
          require(['@/views/infoFlowData/customContractManage'], resolve)
      },
      {
        meta: {
          title: '平台合同管理',
          index: '1-7'
        },
        path: 'platformContractManage',
        name: 'platformContractManage',
        component: resolve =>
          require(['@/views/infoFlowData/platformContractManage'], resolve)
      },
      {
        meta: {
          title: '客户预收',
          index: '1-8'
        },
        path: 'customAdvance',
        name: 'customAdvance',
        component: resolve =>
          require(['@/views/infoFlowData/customAdvance'], resolve)
      },
      {
        meta: {
          title: '客户对账',
          index: '1-9'
        },
        path: 'customAccount',
        name: 'customAccount',
        component: resolve =>
          require(['@/views/infoFlowData/customAccount'], resolve)
      },
      {
        meta: {
          title: '客户结算单',
          index: '1-10',
          hasScroll: true
        },
        path: 'customSettlement',
        name: 'customSettlement',
        component: resolve =>
          require(['@/views/infoFlowData/customSettlement'], resolve)
      },
      {
        meta: {
          title: '客户预收结算单',
          index: '1-11',
          hasScroll: true
        },
        path: 'customAdvanceSettlement',
        name: 'customAdvanceSettlement',
        component: resolve =>
          require(['@/views/infoFlowData/customAdvanceSettlement'], resolve)
      },
      {
        meta: {
          title: '平台对账',
          index: '1-12'
        },
        path: 'platformReconciliation',
        name: 'platformReconciliation',
        component: resolve =>
          require(['@/views/infoFlowData/platformReconciliation'], resolve)
      },
      {
        meta: {
          title: '平台结算单',
          index: '1-13'
        },
        path: 'platformStatement',
        name: 'platformStatement',
        component: resolve =>
          require(['@/views/infoFlowData/platformStatement'], resolve)
      },
      {
        meta: {
          title: '人员绩效管理',
          index: '1-14'
        },
        path: 'personnelPerformanceManage',
        name: 'personnelPerformanceManage',
        component: resolve =>
          require(['@/views/infoFlowData/personnelPerformanceManage'], resolve)
      }
    ]
  },
  // CPA数据管理
  {
    path: '/cpaDataMana',
    name: 'cpaDataMana',
    component: resolve => require(['@/index'], resolve),
    children: [
      {
        meta: {
          index: "2-1-1",
          title: '数据报表'
        },
        path: 'realTimeData',
        name: 'realTimeData',
        component: resolve =>
          require(['@/views/cpaDataMana/realTimeData'], resolve)
      },
      {
        meta: {
          index: "2-1-2",
          title: '数据刷新'
        },
        path: 'realTimeDataUpdate',
        name: 'realTimeDataUpdate',
        component: resolve =>
          require(['@/views/cpaDataMana/realTimeDataUpdate'], resolve)
      },
      {
        meta: {
          index: "2-2-3",
          title: '产品管理'
        },
        path: 'customerProMana',
        name: 'customerProMana',
        component: resolve =>
          require(['@/views/cpaDataMana/customerProMana'], resolve)
      },
      {
        meta: {
          title: '新建客户产品',
          keepAlive: false
        },
        path: 'customerProNew',
        name: 'customerProNew',
        component: resolve =>
          require(['@/views/cpaDataMana/customerProNew'], resolve)
      },
      {
        meta: {
          index: "2-2-4",
          title: '投放管理'
        },
        path: 'channelProMana',
        name: 'channelProMana',
        component: resolve =>
          require(['@/views/cpaDataMana/channelProMana'], resolve)
      },
      {
        meta: {
          title: '新建渠道产品',
          keepAlive: false
        },
        path: 'channelProNew',
        name: 'channelProNew',
        component: resolve =>
          require(['@/views/cpaDataMana/channelProNew'], resolve)
      },
      {
        meta: {
          index: "2-2-1",
          title: '客户信息'
        },
        path: 'customerInfoMana',
        name: 'customerInfoMana',
        component: resolve =>
          require(['@/views/cpaDataMana/customerInfoMana'], resolve)
      },
      {
        meta: {
          title: '新建客户信息',
          keepAlive: false
        },
        path: 'customerInfoNew',
        name: 'customerInfoNew',
        component: resolve =>
          require(['@/views/cpaDataMana/customerInfoNew'], resolve)
      },
      {
        meta: {
          index: "2-5-1",
          title: '客户合同'
        },
        path: 'customerContractMana',
        name: 'customerContractMana',
        component: resolve =>
          require(['@/views/cpaDataMana/customerContractMana'], resolve)
      },
      {
        meta: {
          title: '新建客户合同',
          keepAlive: false
        },
        path: 'customerContractNew',
        name: 'customerContractNew',
        component: resolve =>
          require(['@/views/cpaDataMana/customerContractNew'], resolve)
      },
      {
        meta: {
          index: "2-2-2",
          title: '渠道信息'
        },
        path: 'channelInfoMana',
        name: 'channelInfoMana',
        component: resolve =>
          require(['@/views/cpaDataMana/channelInfoMana'], resolve)
      },
      {
        meta: {
          title: '新建渠道信息',
          keepAlive: false
        },
        path: 'channelInfoNew',
        name: 'channelInfoNew',
        component: resolve =>
          require(['@/views/cpaDataMana/channelInfoNew'], resolve)
      },
      {
        meta: {
          index: "2-5-2",
          title: '渠道合同'
        },
        path: 'channelContractMana',
        name: 'channelContractMana',
        component: resolve =>
          require(['@/views/cpaDataMana/channelContractMana'], resolve)
      },
      {
        meta: {
          title: '新建渠道合同',
          keepAlive: false
        },
        path: 'channelContractNew',
        name: 'channelContractNew',
        component: resolve =>
          require(['@/views/cpaDataMana/channelContractNew'], resolve)
      },
      {
        meta: {
          index: "2-3-2",
          title: '客户对账'
        },
        path: 'customerAccountBill',
        name: 'customerAccountBill',
        component: resolve =>
          require(['@/views/cpaDataMana/customerAccountBill'], resolve)
      },
      {
        meta: {
          index: "2-4-1",
          title: '客户月结'
        },
        path: 'customerAccount',
        name: 'customerAccount',
        component: resolve =>
          require(['@/views/cpaDataMana/customerAccount'], resolve)
      },
      {
        meta: {
          index: "2-4-2",
          title: '客户预收'
        },
        path: 'customerCollect',
        name: 'customerCollect',
        component: resolve =>
          require(['@/views/cpaDataMana/customerCollect'], resolve)
      },
      {
        meta: {
          index: "2-4-3",
          title: '预收管理'
        },
        path: 'customerCollectMana',
        name: 'customerCollectMana',
        component: resolve =>
          require(['@/views/cpaDataMana/customerCollectMana'], resolve)
      },
      {
        meta: {
          index: "2-3-4",
          title: '渠道对账'
        },
        path: 'channelAccountBill',
        name: 'channelAccountBill',
        component: resolve =>
          require(['@/views/cpaDataMana/channelAccountBill'], resolve)
      },
      {
        meta: {
          index: "2-4-4",
          title: '渠道月结'
        },
        path: 'channelAccount',
        name: 'channelAccount',
        component: resolve =>
          require(['@/views/cpaDataMana/channelAccount'], resolve)
      },
      {
        meta: {
          index: "2-4-5",
          title: '渠道预收'
        },
        path: 'channelPay',
        name: 'channelPay',
        component: resolve => require(['@/views/cpaDataMana/channelPay'], resolve)
      },
      {
        meta: {
          index: "2-4-6",
          title: '预付管理'
        },
        path: 'channelPayMana',
        name: 'channelPayMana',
        component: resolve =>
          require(['@/views/cpaDataMana/channelPayMana'], resolve)
      },
      {
        meta: {
          index: "2-3-1",
          title: '批量调价(客户)'
        },
        path: 'changePrices',
        name: 'changePrices',
        component: resolve =>
          require(['@/views/cpaDataMana/changePrices'], resolve)
      },
      {
        meta: {
          index: "2-3-3",
          title: '批量调价(渠道)'
        },
        path: 'changeChannelPrices',
        name: 'changeChannelPrices',
        component: resolve =>
          require(['@/views/cpaDataMana/changeChannelPrices'], resolve)
      },
      {
        meta: {
          index: "2-1-3",
          title: '数据抓取'
        },
        path: 'contentGrab',
        name: 'contentGrab',
        component: resolve =>
          require(['@/views/cpaDataMana/contentGrab'], resolve)
      }
    ]
  }
];
